﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using ScrumTable.Common.Threading;

#endregion

namespace ScrumTable.DL.Data.Common
{
    /// <summary>
    /// This interface contains a callback mechanism which is used to
    /// validate and cancel a request.
    /// </summary>
    public interface ICancellableDataResult : IDataResult
    {
        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        /// <summary>
        /// Returns true, if the sync data values have been accepted.
        /// </summary>
        bool DataAccepted { get; }

        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------

        /// <summary>
        /// Aborts the process so the action may be performed again.
        /// </summary>
        void Cancel();

        #endregion

        #region Events

        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------

        #endregion
    }
}